<?php $string = '<span> Hello <a href="phpguide.co.il">PHPguide</a>!</span>';echo htmlspecialchars($string);echo "\r\n";echo htmlspecialchars_decode($string);